<?php $this->load->view('backend/header'); ?>

<body class="black">

<?php $this->load->view('backend/top'); ?>
<?php $this->load->view('backend/slidebar'); ?>
	<!-- Css style customize -->
	<style>
	</style>
	<!-- Home page -->
	<input type='hidden' value='protfolio' class='page' />
	
	<!-- CONTENT -->
	<div id="content">
	
		<h1 id='h1_top'><img src="<?php echo $template_url.'images/' ?>/icons/posts.png" alt="">All Videos</h1>	
		
		<div class="bloc">
			<div class="title"></div>
			<div class="content">
				<table>
					<thead>
						<tr>
							<th>Picture</th>
							<th>Name</th>
							<th>Actions</th>
						</tr>
					</thead>
					<tbody>
											
						<?php if( isset($data[0]) ): ?>
						<?php foreach($data as $key=>$item): ?>
						<?php
							$link_edit_image = base_url('admin/edit_protfolio_?id='.$item['id']);
							 $link_edit = base_url('admin/edit_protfolio?id='.$item['id']);
							 $link_add = base_url('admin/add_protfolio'); 
						?>
						<tr id='<?php echo 'row_'.$item['id'] ?>'>
							<td class="picture" style="width: 140px;"><a
								href="<?php echo $link_edit_image ?>" class="zoombox"><img
									src="" alt="" width=80 height=80> </a></td>
									
							<td><a href="<?php echo $link_edit_image ?>"><?php echo $item['name'] ?></a></td>
							
							<td class="actions" >
								<a href="<?php echo $link_edit ?>" title="Edit this content">
									<img src="<?php echo $template_url.'images/' ?>icons/edit.png" alt="">
								</a>
								
								<a class='delete' page='protfolio' id='<?php echo $item['id'] ?>' href="javascript:void(0)" title="Delete this content">
									<img src="<?php echo $template_url.'images/' ?>icons/delete.png" alt=""> 
								</a>
							</td>
						</tr>
						<?php endforeach; ?>
						<?php endif; ?>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>
